home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / objects / r3cylind.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  5.9 KB  |  248 lines

  1.  
  2. // JavaScript wrapper for r3cylind.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_CYLIND_H = 1;
  7. include("oops/r3vector.js")
  8. include("real/objects/r3prim.js")
  9.  
  10.  
  11. var R3CLID_CYLINDER = 172;
  12.  
  13.  
  14.  
  15.  
  16. R3CYLA_Center = 172500;
  17. function SetR3CYLA_Center(value) {
  18.   R3Set(this.r3obj, R3CYLA_Center, value, R3TID_VECTOR, 0); 
  19. }
  20.  
  21. function GetR3CYLA_Center() {
  22.   return R3Get(this.r3obj, R3CYLA_Center, R3TID_VECTOR, 0); 
  23. }
  24.  
  25. R3CYLA_A = 172501;
  26. function SetR3CYLA_A(value) {
  27.   R3Set(this.r3obj, R3CYLA_A, value, R3TID_VECTOR, 0); 
  28. }
  29.  
  30. function GetR3CYLA_A() {
  31.   return R3Get(this.r3obj, R3CYLA_A, R3TID_VECTOR, 0); 
  32. }
  33.  
  34. R3CYLA_B = 172502;
  35. function SetR3CYLA_B(value) {
  36.   R3Set(this.r3obj, R3CYLA_B, value, R3TID_VECTOR, 0); 
  37. }
  38.  
  39. function GetR3CYLA_B() {
  40.   return R3Get(this.r3obj, R3CYLA_B, R3TID_VECTOR, 0); 
  41. }
  42.  
  43. R3CYLA_C = 172503;
  44. function SetR3CYLA_C(value) {
  45.   R3Set(this.r3obj, R3CYLA_C, value, R3TID_VECTOR, 0); 
  46. }
  47.  
  48. function GetR3CYLA_C() {
  49.   return R3Get(this.r3obj, R3CYLA_C, R3TID_VECTOR, 0); 
  50. }
  51.  
  52. R3CYLA_P1 = 172504;
  53. function SetR3CYLA_P1(value) {
  54.   R3Set(this.r3obj, R3CYLA_P1, value, R3TID_VECTOR, 0); 
  55. }
  56.  
  57. function GetR3CYLA_P1() {
  58.   return R3Get(this.r3obj, R3CYLA_P1, R3TID_VECTOR, 0); 
  59. }
  60.  
  61. R3CYLA_N1 = 172505;
  62. function SetR3CYLA_N1(value) {
  63.   R3Set(this.r3obj, R3CYLA_N1, value, R3TID_VECTOR, 0); 
  64. }
  65.  
  66. function GetR3CYLA_N1() {
  67.   return R3Get(this.r3obj, R3CYLA_N1, R3TID_VECTOR, 0); 
  68. }
  69.  
  70. R3CYLA_M1 = 172506;
  71. function SetR3CYLA_M1(value) {
  72.   R3Set(this.r3obj, R3CYLA_M1, value, R3TID_VECTOR, 0); 
  73. }
  74.  
  75. function GetR3CYLA_M1() {
  76.   return R3Get(this.r3obj, R3CYLA_M1, R3TID_VECTOR, 0); 
  77. }
  78.  
  79. R3CYLA_P2 = 172507;
  80. function SetR3CYLA_P2(value) {
  81.   R3Set(this.r3obj, R3CYLA_P2, value, R3TID_VECTOR, 0); 
  82. }
  83.  
  84. function GetR3CYLA_P2() {
  85.   return R3Get(this.r3obj, R3CYLA_P2, R3TID_VECTOR, 0); 
  86. }
  87.  
  88. R3CYLA_N2 = 172508;
  89. function SetR3CYLA_N2(value) {
  90.   R3Set(this.r3obj, R3CYLA_N2, value, R3TID_VECTOR, 0); 
  91. }
  92.  
  93. function GetR3CYLA_N2() {
  94.   return R3Get(this.r3obj, R3CYLA_N2, R3TID_VECTOR, 0); 
  95. }
  96.  
  97. R3CYLA_M2 = 172509;
  98. function SetR3CYLA_M2(value) {
  99.   R3Set(this.r3obj, R3CYLA_M2, value, R3TID_VECTOR, 0); 
  100. }
  101.  
  102. function GetR3CYLA_M2() {
  103.   return R3Get(this.r3obj, R3CYLA_M2, R3TID_VECTOR, 0); 
  104. }
  105.  
  106. R3CYLA_AS = 172510;
  107. function SetR3CYLA_AS(value) {
  108.   R3Set(this.r3obj, R3CYLA_AS, value, R3TID_FLOAT, 0); 
  109. }
  110.  
  111. function GetR3CYLA_AS() {
  112.   return R3Get(this.r3obj, R3CYLA_AS, R3TID_FLOAT, 0); 
  113. }
  114.  
  115. R3CYLA_AE = 172511;
  116. function SetR3CYLA_AE(value) {
  117.   R3Set(this.r3obj, R3CYLA_AE, value, R3TID_FLOAT, 0); 
  118. }
  119.  
  120. function GetR3CYLA_AE() {
  121.   return R3Get(this.r3obj, R3CYLA_AE, R3TID_FLOAT, 0); 
  122. }
  123.  
  124. R3CYLA_AS3D = 172512;
  125. function GetR3CYLA_AS3D() {
  126.   return R3Get(this.r3obj, R3CYLA_AS3D, R3TID_VECTOR, 0); 
  127. }
  128.  
  129. R3CYLA_AE3D = 172513;
  130. function GetR3CYLA_AE3D() {
  131.   return R3Get(this.r3obj, R3CYLA_AE3D, R3TID_VECTOR, 0); 
  132. }
  133.  
  134. R3CYLA_Len = 172514;
  135. function SetR3CYLA_Len(value) {
  136.   R3Set(this.r3obj, R3CYLA_Len, value, R3TID_FLOAT, 0); 
  137. }
  138.  
  139. function GetR3CYLA_Len() {
  140.   return R3Get(this.r3obj, R3CYLA_Len, R3TID_FLOAT, 0); 
  141. }
  142.  
  143. R3CYLA_ALen = 172515;
  144. function SetR3CYLA_ALen(value) {
  145.   R3Set(this.r3obj, R3CYLA_ALen, value, R3TID_FLOAT, 0); 
  146. }
  147.  
  148. function GetR3CYLA_ALen() {
  149.   return R3Get(this.r3obj, R3CYLA_ALen, R3TID_FLOAT, 0); 
  150. }
  151.  
  152. R3CYLA_BLen = 172516;
  153. function SetR3CYLA_BLen(value) {
  154.   R3Set(this.r3obj, R3CYLA_BLen, value, R3TID_FLOAT, 0); 
  155. }
  156.  
  157. function GetR3CYLA_BLen() {
  158.   return R3Get(this.r3obj, R3CYLA_BLen, R3TID_FLOAT, 0); 
  159. }
  160.  
  161. R3CYLA_Infinite = 172517;
  162. function SetR3CYLA_Infinite(value) {
  163.   R3Set(this.r3obj, R3CYLA_Infinite, value, R3TID_INTEGER, 0); 
  164. }
  165.  
  166. function GetR3CYLA_Infinite() {
  167.   return R3Get(this.r3obj, R3CYLA_Infinite, R3TID_INTEGER, 0); 
  168. }
  169.  
  170. R3CYLA_Uncovered1 = 172518;
  171. function SetR3CYLA_Uncovered1(value) {
  172.   R3Set(this.r3obj, R3CYLA_Uncovered1, value, R3TID_INTEGER, 0); 
  173. }
  174.  
  175. function GetR3CYLA_Uncovered1() {
  176.   return R3Get(this.r3obj, R3CYLA_Uncovered1, R3TID_INTEGER, 0); 
  177. }
  178.  
  179. R3CYLA_Uncovered2 = 172519;
  180. function SetR3CYLA_Uncovered2(value) {
  181.   R3Set(this.r3obj, R3CYLA_Uncovered2, value, R3TID_INTEGER, 0); 
  182. }
  183.  
  184. function GetR3CYLA_Uncovered2() {
  185.   return R3Get(this.r3obj, R3CYLA_Uncovered2, R3TID_INTEGER, 0); 
  186. }
  187.  
  188. R3CYLA_Sector = 172520;
  189. function SetR3CYLA_Sector(value) {
  190.   R3Set(this.r3obj, R3CYLA_Sector, value, R3TID_INTEGER, 0); 
  191. }
  192.  
  193. function GetR3CYLA_Sector() {
  194.   return R3Get(this.r3obj, R3CYLA_Sector, R3TID_INTEGER, 0); 
  195. }
  196.  
  197.  
  198.  
  199. function r3Cylinder () { 
  200.    this.base = r3God;
  201.    if(arguments.length) {
  202.       this.base(R3CLID_CYLINDER, arguments);
  203.    }
  204.    // Attributes
  205.    this.GetCenter=GetR3CYLA_Center;
  206.    this.SetCenter=SetR3CYLA_Center;
  207.    this.GetA=GetR3CYLA_A;
  208.    this.SetA=SetR3CYLA_A;
  209.    this.GetB=GetR3CYLA_B;
  210.    this.SetB=SetR3CYLA_B;
  211.    this.GetC=GetR3CYLA_C;
  212.    this.SetC=SetR3CYLA_C;
  213.    this.GetP1=GetR3CYLA_P1;
  214.    this.SetP1=SetR3CYLA_P1;
  215.    this.GetN1=GetR3CYLA_N1;
  216.    this.SetN1=SetR3CYLA_N1;
  217.    this.GetM1=GetR3CYLA_M1;
  218.    this.SetM1=SetR3CYLA_M1;
  219.    this.GetP2=GetR3CYLA_P2;
  220.    this.SetP2=SetR3CYLA_P2;
  221.    this.GetN2=GetR3CYLA_N2;
  222.    this.SetN2=SetR3CYLA_N2;
  223.    this.GetM2=GetR3CYLA_M2;
  224.    this.SetM2=SetR3CYLA_M2;
  225.    this.GetAS=GetR3CYLA_AS;
  226.    this.SetAS=SetR3CYLA_AS;
  227.    this.GetAE=GetR3CYLA_AE;
  228.    this.SetAE=SetR3CYLA_AE;
  229.    this.GetAS3D=GetR3CYLA_AS3D;
  230.    this.GetAE3D=GetR3CYLA_AE3D;
  231.    this.GetLen=GetR3CYLA_Len;
  232.    this.SetLen=SetR3CYLA_Len;
  233.    this.GetALen=GetR3CYLA_ALen;
  234.    this.SetALen=SetR3CYLA_ALen;
  235.    this.GetBLen=GetR3CYLA_BLen;
  236.    this.SetBLen=SetR3CYLA_BLen;
  237.    this.GetInfinite=GetR3CYLA_Infinite;
  238.    this.SetInfinite=SetR3CYLA_Infinite;
  239.    this.GetUncovered1=GetR3CYLA_Uncovered1;
  240.    this.SetUncovered1=SetR3CYLA_Uncovered1;
  241.    this.GetUncovered2=GetR3CYLA_Uncovered2;
  242.    this.SetUncovered2=SetR3CYLA_Uncovered2;
  243.    this.GetSector=GetR3CYLA_Sector;
  244.    this.SetSector=SetR3CYLA_Sector;
  245. }
  246.  
  247. r3Cylinder.prototype=new r3Primitive;
  248. // r3cylind.h_H